-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update README.md to include workflow diagram #1
base: main
Are you sure you want to change the base?
Conversation
Proposed inclusion of a mermaid workflow diagram in the readme markdown to illustrate the order in which files should be run. This could be expanded to add data outputs, potentially.
Hi Carl - looks great, but needs to change in one respectplease. Not sure whether you think this would look best as 2 rows in a single Workflow box, or 2 separate boxes - I don't mind. I think it makes sense to continue to say that they both import functions as required. (Currently, (I had a go at changing it, but it didn't look good, so I thought I'd leave it to you if that's OK.) |
Hi Steve, thanks for checking this out and for the clarification. Just wondering, is the output file If it were, we could sketch this perhaps as, flowchart TD
subgraph Workflow
direction LR
baseline.R --> a(intervention destinations.R)
a --> analysis.R
intervention.cycling.speed.R --> analysis.R
end
Workflow<-- imports as required ---c(functions/*.R)
Otherwise, we could do something like this, flowchart TD
subgraph WorkflowA[Destination allocation Intervention]
direction LR
baseline.R --> a(intervention destinations.R)
a --> analysis.R
end
subgraph WorkflowB[Cycling speed Intervention]
direction LR
intervention.cycling.speed.R
end
WorkflowA<-- imports as required ---c(functions/*.R)
WorkflowB -- imports as required ---c(functions/*.R)
what do you think? |
I suppose the other question would be, how important/useful do you think it would be to include data in this? It could over-complicate things, but then again, it could show which files are generated from which steps, and that could be useful Would love to hear your thoughts on this @StevePem |
Hi @StevePem , if we included only main code and data in the workflow diagram, and had a file like flowchart TD
subgraph WorkflowA[Destination allocation Intervention]
direction LR
baseline.R --> a(intervention destinations.R)
a --> analysis.R
end
subgraph WorkflowB[Cycling speed Intervention]
direction LR
intervention.cycling.speed.R
end
data-resources.yml --- WorkflowA
data-resources.yml --- WorkflowB
WorkflowA --> o1[(output/intervention locations.sqlite)]
WorkflowA --> o2([output/intervention tables.xlsx])
WorkflowB --> o3([output/edgesMelbourneUpdatedSpeed.gpkg])
Maybe its not that important / useful to include all the individual data and sub-functions. Those are details that someone could check out either in data-resources.yml (or readme.MD!) and the code itself for functions. What do you think about something high level like this to illustrate workflow and outputs? |
Hi @carlhiggs - thanks for these comments. To respond (and with a few other related thoughts):
|
Sounds good @StevePem, thanks for the advice and update. Perhaps we could hold off on this for now and update once outputs are finalised, and we agree if/how data could be listed in a configuration file. Let's discuss tomorrow. |
Proposed inclusion of a mermaid workflow diagram in the readme markdown to illustrate the order in which files should be run. This could be expanded to add data outputs, potentially.
This looks a bit like this (the diagram is the new bit):